package com.yang.account.controller;

import com.yang.account.service.AccountServiceImp;
import com.yang.springcloud.pojo.ShoppingCartGoods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class AccountController {
    @Autowired
    AccountServiceImp accountServiceImp;

    @PostMapping("/updatebalance")
    public Map<String, Object> updateBalance(List<ShoppingCartGoods> goodList, int userid) {
        return accountServiceImp.updateBalance(goodList, userid);
    }
}
